/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.base.entity.supplier;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 供应商Entity
 * @author LV
 * @version 2021-03-01
 */
@Table(name="t_supplier_business_type", alias="a", columns={
		@Column(name="business_type_id", attrName="businessTypeId", label="业务类型ID", isPK=true),
		@Column(name="business_type", attrName="businessType", label="业务类型"),
		@Column(name="supplier_id", attrName="supplierId.supplierId", label="供应商ID"),
	}, orderBy="a.business_type_id ASC"
)
public class SupplierBusinessType extends DataEntity<SupplierBusinessType> {
	
	private static final long serialVersionUID = 1L;
	private String businessTypeId;		// 业务类型ID
	private String businessType;		// 业务类型
	private Supplier supplierId;		// 供应商ID 父类
	
	public SupplierBusinessType() {
		this(null);
	}


	public SupplierBusinessType(Supplier supplierId){
		this.supplierId = supplierId;
	}
	
	public String getBusinessTypeId() {
		return businessTypeId;
	}

	public void setBusinessTypeId(String businessTypeId) {
		this.businessTypeId = businessTypeId;
	}
	
	@Length(min=0, max=2, message="业务类型长度不能超过 2 个字符")
	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	
	@Length(min=0, max=64, message="供应商ID长度不能超过 64 个字符")
	public Supplier getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Supplier supplierId) {
		this.supplierId = supplierId;
	}
	
}